Skip to content

[6.2][Concurency] Allow declarations with @isolated(any) parameters be m… #82735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2025

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 2, 2025

…arked as @concurrent/nonisolated(nonsending)

  • Explanation:

    It's shouldn't be possible to use these attributes directly on the function type that is @isolated(any) as per SE-0461 proposal but it shouldn't preclude declarations that have parameters with @isolated(any) from using them.

  • Resolves: rdar://154754939

  • Main Branch PR: [Concurency] Allow declarations with @isolated(any) parameters be m… #82689

  • Risk: Low. Allow nonisolated(nonsending) on more declarations, it's guarded by a flag that is not enabled by default.

  • Reviewed By: @gottesmm

  • Testing: Added new test-cases to the test suite.

(cherry picked from commit a522448)

…arked as `@concurrent`/`nonisolated(nonsending)`

It's shouldn't be possible to use these attributes directly on
the function type that is `@isolated(any)` as per SE-0461 proposal
but it shouldn't preclude declarations that have parameters with
`@isolated(any)` from using them.

Resolves: rdar://154754939
(cherry picked from commit a522448)
@xedin xedin requested a review from a team as a code owner July 2, 2025 18:52
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels Jul 2, 2025
@xedin
Copy link
Contributor Author

xedin commented Jul 2, 2025

@swift-ci please test

@xedin xedin merged commit 01404bf into swiftlang:release/6.2 Jul 3, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants